import http from "./http";

export function fetchSpotcheckList(params = {}) {
  return http.get("/buyer/verify/stock", { params });
}

export function fetchSpotcheckDetail(id) {
  return http.get(`/buyer/verify/stock/${id}`);
}

export function cancelSpotcheck(id) {
  return http.delete(`/buyer/verify/stock/${id}`);
}

export function createSpotcheck(payload) {
  return http.post("/buyer/verify/stock", payload);
}
